#include "Conversation.h"

Conversation::Conversation(char * text, ConditionalStatement * nextConversationConditional)
{
	this->text = text;
	this->nextConversationConditional = nextConversationConditional;
}

Conversation::~Conversation()
{
	if(text)
	{
		delete(text);
		text = NULL;
	}
	if(nextConversationConditional)
	{
		delete(nextConversationConditional);
		nextConversationConditional = NULL;
	}
}
char * Conversation::NextConversationKey(Dictionary * dictionary)
{
	return nextConversationConditional->Evaluate(dictionary);
}
char * Conversation::GetText()
{
	return text;
}